package com.yjk.example;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/11/15 15:37 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
@Controller
public class HelloController {

    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        return "hello";
    }

    @GetMapping("/haha")
    public String haha(){
        return "haha";
    }
}
